home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 33 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.1 KB  |  50 lines

  1. Newsgroups: comp.std.c++
  2. Path: cs.mu.OZ.AU!bounce-back
  3. From: clamage@Eng.Sun.COM (Steve Clamage)
  4. Subject: Re: Standard ANSI string.h -- where?
  5. Message-ID: <4d3hjd$o15@engnews1.Eng.Sun.COM>
  6. Originator: fjh@munta.cs.mu.OZ.AU
  7. Sender: news@cs.mu.OZ.AU (CS-Usenet)
  8. Reply-To: clamage@Eng.Sun.COM
  9. Organization: Sun Microsystems Inc.
  10. References: <30F4BB6C.C8A@trilogy.com>
  11. X-Original-Date: 11 Jan 1996 17: 32:29 GMT
  12. Date: Fri, 12 Jan 1996 03:45:23 GMT
  13. Approved: fjh@cs.mu.oz.au
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBFAgUBMPXZaeEDnX0m9pzZAQGaRQGAkcNdhDTQavj8GKA+o8ipSu0AKa4Gn3O3
  16.     1a9xWXfzZFRix1nft6ifmojzNkfqi0CK
  17.     =AjhZ
  18.  
  19. In article C8A@trilogy.com, "D. Allan Drummond" <allan.drummond@trilogy.com>
  20. writes:
  21.  
  22. >I've been playing around a bit with the HP STL implementation.  
  23. >Problem: bstring.h (an almost-ANSI-string header) doesn't 
  24. >contain such simple and useful functions as begin() and end() 
  25. >(which should return iterators at the beginning and end of the 
  26. >string).  In reading The STL<Primer>, I came across examples 
  27. >that claim that just these sort of functions exist.
  28.  
  29. >So, where can I find a 'real' ANSI string.h?  Is there one in 
  30. >the public domain?  If not, where might I be able to buy one?
  31.  
  32. I think that <bstring.h> is a BSD-Unix-ism. I do know it is not part of
  33. standard C or C++. I don't know whether it is part of POSIX.
  34.  
  35. The standard header <string.h> must be part of any conforming C and
  36. C++ implementation. If you don't have a conforming C or C++ compiler,
  37. adding someone else's header won't do you any good. The header must
  38. match the library.
  39.  
  40. P. J. Plauger's book "The Standard C Library" contains a complete
  41. implementation that you could copy. (Pay attention to the copyright
  42. restrictions.) But I would think you would be better off finding out
  43. why your C++ compiler doesn't have a <string.h>, if indeed it does not.
  44. ---
  45. Steve Clamage, stephen.clamage@eng.sun.com
  46. ---
  47. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  48.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  49.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  50.